package com.xuecheng.order.agent;

import com.xuecheng.api.search.model.dto.CoursePubIndexDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.order.agent.sentinel.SearchApiAgentFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p></p>
 *
 * @Description:
 */
@FeignClient(value = XcFeignServiceNameList.XC_SEARCH_SERVICE,fallback = SearchApiAgentFallback.class)
public interface SearchApiAgent {

    String PREFIX_FLAG = "/search/l/";


    @GetMapping(PREFIX_FLAG + "course-index/{coursePubId}")
    RestResponse<CoursePubIndexDTO> getPubIndexById4s(@PathVariable Long coursePubId);

}
